package com.quan.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quan.admin.entity.SysLog;
import com.quan.admin.mapper.SysLogMapper;
import com.quan.admin.service.SysLogService;
import com.quan.commons.core.biz.support.MyBaseServiceImpl;
import com.quan.commons.core.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SysLogServiceImpl extends MyBaseServiceImpl<SysLogMapper, SysLog> implements SysLogService {

    @Autowired
	private SysLogMapper mapper;

	@Override
    public IPage<SysLog> selectMyPage(PageUtils pageUtils, SysLog entity) {
        Page<SysLog> page = new Page<SysLog>(pageUtils.getPage(), pageUtils.getLimit());

        // 排序
        super.handleSort(page, pageUtils);

        return this.mapper.selectMyPage(page, entity);
    }

}